package com.tyk.bookstore.back.product.service.impl;

import com.tyk.bookstore.back.product.model.dto.Praise4TaskDto;
import com.tyk.bookstore.back.product.repository.BookPraiseRepository;
import com.tyk.bookstore.back.product.service.PraiseApiService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tyk
 * @description CollectApiServiceImpl
 */
@Service
@RequiredArgsConstructor
public class PraiseApiServiceImpl implements PraiseApiService {

    private final BookPraiseRepository bookPraiseRepository;


    @Override
    public List<Praise4TaskDto> getPraise4TaskDtoList() {
        return bookPraiseRepository.selectPraiseDtoList();
    }
}
